package com.techstar.api.pojo.gis;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 实时交通事故
 * @date 2021年6月28日
 *
 */
@Getter
@Setter
@Entity
@ToString
@Table(name = "traffic_accident")
@org.hibernate.annotations.Table(appliesTo = "traffic_accident",comment="gis-1-实时交通事故")
public class TrafficAccident {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	private String eventId;
	private String eventCategory;
	private String eventType;
	private String content;
	private String startTime;
	private String endTime;
	private String sectionId;
	private String sectionName;
	private String roadId;
	private String roadName;
	private String roadType;
	private String distId;
	private String distName;
	private String coordinates;
	private String cootype;
	private String eventStatus;
	private String sementic;
	private String laneDesc;
	@JsonDeserialize(using = DateTimeDeserializer.class)
    private DateTime insertTime;
	@JsonDeserialize(using = DateTimeDeserializer.class)
    private DateTime updateTime;
	private String dataSource;
}
